<?php
namespace Project_725\Tests;
use TwinPeaks\Core\Http as Http;

require __DIR__ . '/../AppProject_725.php';

class Base extends \PHPUnit_Framework_TestCase
{
	function __construct()
	{
		parent::__construct();
		Http\CUri::setDefaultHost('geomania.local');
		$_SERVER['REQUEST_METHOD'] = 'GET';
	}
	
	function getAppInstance($reqURI = null)
	{
		if (empty($reqURI))
			$reqURI = '/';
		return \Project_725\AppLoveMeter::handleRequest($reqURI);
	}


	function testConfig()
	{
		$app = \Project_725\AppLoveMeter::handleRequest("/")->initialize();
		$this->assertTrue($app->getConfig()->isDebug);
	}
	
	function testPostData()
	{
		
	}
}
